#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2022-01-20 22:14:52
# @Author  : BrightSoul (653538096@qq.com)


import os


data_text = """
赵海欣,Zhao,Haixin,6,umview@163.com
付饶,Fu,Rao,5,buaafurao@buaa.edu.cn
陈炼,Chen,Lian,5,BY1903003@buaa.edu.cn
刘润潇,Liu,Runxiao,5,1046947197@qq.com
毛鹏达,Mao,Pengda,4,maopengda@ buaa.edu.cn
王培,Wang,Pei,4,wangpei_09@163.com
刘浩,Liu,Ming,4,575539227@qq.com
宋雯琪,Song,Wenqi,4,jnswqno1@163.com
蒋硕,Jiang,Shuo,3,jiangshuo@buaa.edu.cn
李博文,Li,Bowen,3,bob398@buaa.edu.cn
尹辰昕,Yin,Chenxin,3,1175269652@qq.com
乐祥立,Le,Xiangli,3,lexiangli@buaa.edu.cn
吕书礼,Lv,Shuli,3,18375305@buaa.edu.cn
李瑞丰,Li,Ruifeng,2,liruifeng5@buaa.edu.cn
王文豪,Wang,Wenhao,2,17375363@buaa.edu.cn
曾单,Zeng,Dan,2,zengdan0805@buaa.edu.cn
酆禾阳,Feng,Heyang,1,fhybuaa@163.com
何信,He,Xin,1,hex707@yeah.net
范益典,Fan,Yidian,1,fanyidian@buaa.edu.cn
"""

info_templ = '''\t"hname" : "{}", "name" : "{}",
\t"email" : "{}",
\t"imgUrl" : "",
\t"synopsis" :""'''


for i in data_text.split("\n"):
    textL = i.split(",")
    if len(textL) == 5:
        name,fst,sec,_,mail = textL
        info = info_templ.format(sec+" "+fst,name,mail)
        print("{")
        print(info)
        print("},")

